package cn.bdqn.layui.mapper;

import cn.bdqn.layui.entity.Product;
import cn.bdqn.layui.entity.ProductType;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ProductMapper {

    List<Product> getAllProductByPage();

    int updateStack(@Param("stack") Integer stack, @Param("id") Integer id);

    List<ProductType> findProductType();

    int addProduct(Product product);

    Product findProduct(Integer id);

    int updateStackV1(@Param("id") Integer id);
}
